package com.hzncc.flowable_diboot.payment.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 回款登记 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-10-17
* Copyright © MyCorp
*/

@TableName("mdl_payment_register")
@Getter @Setter @Accessors(chain = true)
public class PaymentRegister extends BaseModel {
    private static final long serialVersionUID = 1555275817464142645L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 客户名称
     */
    @Length(max=100, message="客户名称长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String customerName;

    /**
     * 回款类别
     */
    @TableField()
    private String category;

    /**
     * 回款金额
     */
    @NotNull(message = "回款金额不能为空")
    @Length(max=100, message="回款金额长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private BigDecimal paymentAmount;

    /**
     * 回款日期
     */
    @NotNull(message = "回款日期不能为空")
    @TableField()
    private LocalDateTime paymentTime;

    /**
     * 已回款金额
     */
    @Length(max=100, message="已回款金额长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private BigDecimal receivedAmount;

    /**
     * 未认领金额
     */
    @Length(max=100, message="未认领金额长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private BigDecimal unclaimedAmount;

    /**
     * 回款类型
     */
    @NotNull(message = "回款类型不能为空")
    @TableField()
    private String type;

    /**
     * 银行名称
     */
    @Length(max=100, message="银行名称长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String bankName;

    /**
     * 承兑票号
     */
    @Length(max=100, message="承兑票号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String billNum;

    /**
     * 付款科目
     */
    @Length(max=100, message="付款科目长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String paymentItem;

    /**
     * 传阅
     */
    @Length(max=100, message="传阅长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String copyRead;

    /**
     * 回款状态
     */
    @TableField()
    private String status;

    /**
     * 备注
     */
    @Length(max=100, message="备注长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String remark;

    /**
     * 传阅销售人员
     */
    @Length(max=100, message="传阅销售人员长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String salesCopyRead;

    /**
     * 是否生成回款凭证
     */
    @TableField()
    private String certed;

    /**
     * 凭证类型
     */
    @Length(max=100, message="凭证类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String certType;

    /**
     * 预收所属事业部
     */
    @Length(max=100, message="预收所属事业部长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String dept;

    /**
     * 是否锁定
     */
    @TableField()
    private String locked;

    /**
     * 客户编码
     */
    @TableField()
    private String customerCode;

    /**
     * sap客户id
     */
    @TableField
    private String sapCustomerId;
}